import request from '@/utils/request'

// 查询列表
export function getList(query) {
  return request({
    url: '/system/acddShopType/list',
    method: 'get',
    params: query
  })
}

// 新增
export function addItem(data) {
  return request({
    url: '/system/acddShopType/add',
    method: 'post',
    data
  })
}

// 修改
export function editItem(data) {
  return request({
    url: '/system/acddShopType/edit',
    method: 'post',
    data: data
  })
}

// 查询详细
export function getDetail(id) {
  return request({
    url: `/system/acddShopType/getInfo/${id}`,
    method: 'get',
  })
}

// 删除
export function delItem(ids) {
  return request({
    url: `system/acddShopType/remove/${ids}`,
    method: 'post'
  })
}
